package com.harmontronics.hanma.paas.paas.domain.app.service.tools;

import com.harmontronics.hanma.paas.paas.utils.StringUtil;
import java.util.List;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Title:
 * @ClassName: FieldDisplayRuleBO
 * @Description:
 * @Author: tylr
 * @Date: 2021/6/3 10:06
 * @Version: 1.0.0
 */
@Data
@NoArgsConstructor
public class FieldDisplayRuleBO {

    /**
     * 显示规则
     */
    private String displayRule;
    /**
     * 关联字段的modelCode
     */
    private List<String> relationColumns;
    /**
     * 字段显示内容格式化方式
     */
    private String fieldDisplayFormat;

    public FieldDisplayRuleBO(String displayRule) {
        this.displayRule = StringUtil.strip(displayRule);
    }
}
